#####################
REPLICATION MATERIALS
#####################

The following contains the files needed to reproduce the results reported in:
Or Tuttnauer and Simone Wegmann, "Voting for Votes: Opposition Parties’ Legislative Activity and Electoral Outcomes," American Political Science Review.

### Technical notes
All code was run on Stata/MP 15.1 for Mac (64-bit Intel).
Required packages:
1. blindschemes: to use "plotplain" scheme for graphs.
2. outreg2: to export regression tables to RTF/Word.
3. coefplot: to produce coefficient plot graphs.

### Codebook and information
TW_codebook.pdf includes: 
1. Description and definition of all variables in the data files.
2. Wording of CSES survey questions used.
3. Sources for parliamentary voting data.

### Data files
1. TW_votelevel_data.dta: the underlying data for the main analysis. Used to produce Table 1 and Figure A1.
2. TW_partyterm_data.dta: data file aggregated to the party-in-cabinet-term level. Used to produce Table 2 and Figures 1-4 in the main text, and Tables A.3-A.14 and Figure A.2 in the online appendix.
3. cses_imd.dta: the original CSES IMD dataset, downloaded on 16 November 2018 through https://cses.org/data-download/download-data-documentation/ (free registration required).
4. TW_conflict_data_for_cses.dta: a cropped version of TW_partyterm_data.dta used for merging conflict data with the CSES dataset.
5. TW_survey_data.dta: Used to reproduce the CSES survey analysis - Figures 5 and 6 as well as Tables A.15 & A.16 in the online appendix. For replication transparency, the code to produce this file from the original CSES IMD dataset is provided (see below). 

### Code files
1. TW_descriptives: reproduces various descriptive statistics and correlations mentioned throughout the text, as well as Tables A.1 and A.2 in the online appendix.
2. TW_table1: reproduces Table 1.
3. TW_table2: reproduces Table 2 and Figures 1-4.
4. TW_robustness: reproduces Tables A.3-A.14 and Figure A.2 in the online appendix.
5. TW_fig_a1: reproduces Figure A1 in the online appendix.
6. TW_prepare_cses_data: reshapes the original CSES IMD dataset and merges it with our parliamentary conflict data to produce TW_survey_data.dta.
7. TW_CSES_analysis: reproduces Figures 5 & 6 in the text as well as Tables A.15 & A.16 in the online appendix.

